package cn.wolfcode.p2p.website.controller;

import cn.wolfcode.p2p.base.service.IAccountService;
import cn.wolfcode.p2p.base.util.UserContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PersonalController {

    @Autowired
    private IAccountService accountService;

    @RequestMapping("/personal")
    public String personalPage(Model model){
        model.addAttribute("account",accountService.getCurrent());
        return "/personal";
    }
}
